<!DOCTYPE html>
<html class=" js no-flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths no-csspositionsticky filereader eventsource xhr2" style=""><head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# githubog: http://ogp.me/ns/fb/githubog#">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>eva-engine/vendor/Eva/View/Helper/Action.php at master · AlloVince/eva-engine · GitHub</title>
    <link rel="search" type="application/opensearchdescription+xml" href="https://github.com/opensearch.xml" title="GitHub">
    <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
    <link rel="apple-touch-icon" sizes="57x57" href="https://github.com/apple-touch-icon-114.png">
    <link rel="apple-touch-icon" sizes="114x114" href="https://github.com/apple-touch-icon-114.png">
    <link rel="apple-touch-icon" sizes="72x72" href="https://github.com/apple-touch-icon-144.png">
    <link rel="apple-touch-icon" sizes="144x144" href="https://github.com/apple-touch-icon-144.png">
    <link rel="logo" type="image/svg" href="http://github-media-downloads.s3.amazonaws.com/github-logo.svg">
    <link rel="xhr-socket" href="https://github.com/_sockets">
    <meta name="msapplication-TileImage" content="/windows-tile.png">
    <meta name="msapplication-TileColor" content="#ffffff">

    
    
    <link rel="icon" type="image/x-icon" href="https://github.com/favicon.ico">

    <meta content="authenticity_token" name="csrf-param">
<meta content="Kamd9R+/ox8+/4S0XN3Hmpf2jpursjqEBh6yJEaeT9I=" name="csrf-token">

    <link href="Action.php_files/github-92000aa7ec28a814233730f2a527b1f807162ead.css" media="all" rel="stylesheet" type="text/css">
    <link href="Action.php_files/github2-d151a9d97327d3d6e3c96626b5ae7fec8dae8581.css" media="all" rel="stylesheet" type="text/css">
    


      <script src="Action.php_files/track.js" data-site-id="4f5634b5613f5d0429000010" id="gauges-tracker" async="" type="text/javascript"></script><script src="Action.php_files/frameworks-010d500708696b4ecee44478b5229d626367e844.js" type="text/javascript"></script>
      <script src="Action.php_files/github-1589dde3ad5fb17ec8f44f21a692428ff82f4e0d.js" type="text/javascript"></script><script src="Action.php_files/ga.js" async="" type="text/javascript"></script>
      
      <meta http-equiv="x-pjax-version" content="68b890b68156eecfb1fbd248b2591653">

        <link data-pjax-transient="" rel="permalink" href="https://github.com/AlloVince/eva-engine/blob/167fb0929dab8b9e20dee1ef168ae2b21ac9ec53/vendor/Eva/View/Helper/Action.php">
    <meta property="og:title" content="eva-engine">
    <meta property="og:type" content="githubog:gitrepository">
    <meta property="og:url" content="https://github.com/AlloVince/eva-engine">
    <meta property="og:image" content="https://secure.gravatar.com/avatar/8789e0874bada3a391d8def40c34b92f?s=420&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png">
    <meta property="og:site_name" content="GitHub">
    <meta property="og:description" content="eva-engine - EvaEngine is a Zend Framework 2.0 based development engine. Help you to create startup projects like building blocks.">
    <meta property="twitter:card" content="summary">
    <meta property="twitter:site" content="@GitHub">
    <meta property="twitter:title" content="AlloVince/eva-engine">

    <meta name="description" content="eva-engine - EvaEngine is a Zend Framework 2.0 based development engine. Help you to create startup projects like building blocks.">

  <link href="https://github.com/AlloVince/eva-engine/commits/master.atom" rel="alternate" title="Recent Commits to eva-engine:master" type="application/atom+xml">

  </head>


  <body class="logged_out page-blob linux vis-public env-production  ">
    <div id="wrapper">

      

      
      
      

      
      <div class="header header-logged-out">
  <div class="container clearfix">

      <a class="header-logo-wordmark" href="https://github.com/">Github</a>

      <ul class="top-nav">
          <li class="explore"><a href="https://github.com/explore">Explore GitHub</a></li>
        <li class="search"><a href="https://github.com/search">Search</a></li>
        <li class="features"><a href="https://github.com/features">Features</a></li>
          <li class="blog"><a href="https://github.com/blog">Blog</a></li>
      </ul>

    <div class="header-actions">
        <a class="button primary" href="https://github.com/signup">Sign up for free</a>
      <a class="button" href="https://github.com/login?return_to=%2FAlloVince%2Feva-engine%2Fblob%2Fmaster%2Fvendor%2FEva%2FView%2FHelper%2FAction.php">Sign in</a>
    </div>

  </div>
</div>


      

      


            <div class="site hfeed" itemscope="" itemtype="http://schema.org/WebPage">
      <div class="hentry">
        
        <div class="pagehead repohead instapaper_ignore readability-menu ">
          <div class="container">
            <div class="title-actions-bar">
              


<ul class="pagehead-actions">



    <li>
      <a original-title="You must be signed in to use this feature" href="https://github.com/login?return_to=%2FAlloVince%2Feva-engine" class="minibutton js-toggler-target star-button entice tooltipped upwards" rel="nofollow">
        <span class="mini-icon mini-icon-star"></span>Star
      </a>
      <a class="social-count js-social-count" href="https://github.com/AlloVince/eva-engine/stargazers">
        48
      </a>
    </li>
    <li>
      <a original-title="You must be signed in to fork a repository" href="https://github.com/login?return_to=%2FAlloVince%2Feva-engine" class="minibutton js-toggler-target fork-button entice tooltipped upwards" rel="nofollow">
        <span class="mini-icon mini-icon-fork"></span>Fork
      </a>
      <a href="https://github.com/AlloVince/eva-engine/network" class="social-count">
        28
      </a>
    </li>
</ul>

              <h1 itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
                <span class="repo-label"><span>public</span></span>
                <span class="mega-icon mega-icon-public-repo"></span>
                <span class="author vcard">
                  <a href="https://github.com/AlloVince" class="url fn" itemprop="url" rel="author">
                  <span itemprop="title">AlloVince</span>
                  </a></span> /
                <strong><a href="https://github.com/AlloVince/eva-engine" class="js-current-repository">eva-engine</a></strong>
              </h1>
            </div>

            
  <ul class="tabs">
    <li><a href="https://github.com/AlloVince/eva-engine" class="selected" highlight="repo_source repo_downloads repo_commits repo_tags repo_branches">Code</a></li>
    <li><a href="https://github.com/AlloVince/eva-engine/network" highlight="repo_network">Network</a></li>
    <li><a href="https://github.com/AlloVince/eva-engine/pulls" highlight="repo_pulls">Pull Requests <span class="counter">0</span></a></li>

      <li><a href="https://github.com/AlloVince/eva-engine/issues" highlight="repo_issues">Issues <span class="counter">12</span></a></li>



    <li><a href="https://github.com/AlloVince/eva-engine/graphs" highlight="repo_graphs repo_contributors">Graphs</a></li>


  </ul>
  
<div class="tabnav">

  <span class="tabnav-right">
    <ul class="tabnav-tabs">
          <li><a href="https://github.com/AlloVince/eva-engine/tags" class="tabnav-tab" highlight="repo_tags">Tags <span class="counter blank">0</span></a></li>
    </ul>
    
  </span>

  <div class="tabnav-widget scope">


    <div class="select-menu js-menu-container js-select-menu js-branch-menu">
      <a class="minibutton select-menu-button js-menu-target" data-hotkey="w" data-ref="master">
        <span class="mini-icon mini-icon-branch"></span>
        <i>branch:</i>
        <span class="js-select-button">master</span>
      </a>

      <div class="select-menu-modal-holder js-menu-content js-navigation-container">

        <div class="select-menu-modal">
          <div class="select-menu-header">
            <span class="select-menu-title">Switch branches/tags</span>
            <span class="mini-icon mini-icon-remove-close js-menu-close"></span>
          </div> <!-- /.select-menu-header -->

          <div class="select-menu-filters">
            <div class="select-menu-text-filter">
              <input id="commitish-filter-field" class="js-filterable-field js-navigation-enable" placeholder="Filter branches/tags" type="text">
            </div>
            <div class="select-menu-tabs">
              <ul>
                <li class="select-menu-tab">
                  <a href="#" data-tab-filter="branches" class="js-select-menu-tab">Branches</a>
                </li>
                <li class="select-menu-tab">
                  <a href="#" data-tab-filter="tags" class="js-select-menu-tab">Tags</a>
                </li>
              </ul>
            </div><!-- /.select-menu-tabs -->
          </div><!-- /.select-menu-filters -->

          <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket css-truncate" data-tab-filter="branches">

            <div data-filterable-for="commitish-filter-field" data-filterable-type="substring">

                <div class="select-menu-item js-navigation-item js-navigation-target ">
                  <span class="select-menu-item-icon mini-icon mini-icon-confirm"></span>
                  <a href="https://github.com/AlloVince/eva-engine/blob/avnpc/vendor/Eva/View/Helper/Action.php" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="avnpc" rel="nofollow" title="avnpc">avnpc</a>
                </div> <!-- /.select-menu-item -->
                <div class="select-menu-item js-navigation-item js-navigation-target ">
                  <span class="select-menu-item-icon mini-icon mini-icon-confirm"></span>
                  <a href="https://github.com/AlloVince/eva-engine/blob/gh-pages/vendor/Eva/View/Helper/Action.php" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="gh-pages" rel="nofollow" title="gh-pages">gh-pages</a>
                </div> <!-- /.select-menu-item -->
                <div class="select-menu-item js-navigation-item js-navigation-target selected">
                  <span class="select-menu-item-icon mini-icon mini-icon-confirm"></span>
                  <a href="https://github.com/AlloVince/eva-engine/blob/master/vendor/Eva/View/Helper/Action.php" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="master" rel="nofollow" title="master">master</a>
                </div> <!-- /.select-menu-item -->
            </div>

              <div class="select-menu-no-results">Nothing to show</div>
          </div> <!-- /.select-menu-list -->


          <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket css-truncate" data-tab-filter="tags">
            <div data-filterable-for="commitish-filter-field" data-filterable-type="substring">

            </div>

            <div class="select-menu-no-results">Nothing to show</div>

          </div> <!-- /.select-menu-list -->

        </div> <!-- /.select-menu-modal -->
      </div> <!-- /.select-menu-modal-holder -->
    </div> <!-- /.select-menu -->

  </div> <!-- /.scope -->

  <ul class="tabnav-tabs">
    <li><a href="https://github.com/AlloVince/eva-engine" class="selected tabnav-tab" highlight="repo_source">Files</a></li>
    <li><a href="https://github.com/AlloVince/eva-engine/commits/master" class="tabnav-tab" highlight="repo_commits">Commits</a></li>
    <li><a href="https://github.com/AlloVince/eva-engine/branches" class="tabnav-tab" highlight="repo_branches" rel="nofollow">Branches <span class="counter ">3</span></a></li>
  </ul>

</div>

  
  
  


            
          </div>
        </div><!-- /.repohead -->

        <div id="js-repo-pjax-container" class="container context-loader-container" data-pjax-container="">
          


<!-- blob contrib key: blob_contributors:v21:3de466be9f060806d9fbaed5526a416e -->
<!-- blob contrib frag key: views10/v8/blob_contributors:v21:3de466be9f060806d9fbaed5526a416e -->


<div id="slider">
    <div class="frame-meta">

      <p title="This is a placeholder element" class="js-history-link-replace hidden"></p>

        <div class="breadcrumb">
          <span class="bold"><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="https://github.com/AlloVince/eva-engine" class="js-slide-to" data-branch="master" data-direction="back" itemscope="url"><span itemprop="title">eva-engine</span></a></span></span><span class="separator"> / </span><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="https://github.com/AlloVince/eva-engine/tree/master/vendor" class="js-slide-to" data-branch="master" data-direction="back" itemscope="url"><span itemprop="title">vendor</span></a></span><span class="separator"> / </span><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="https://github.com/AlloVince/eva-engine/tree/master/vendor/Eva" class="js-slide-to" data-branch="master" data-direction="back" itemscope="url"><span itemprop="title">Eva</span></a></span><span class="separator"> / </span><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="https://github.com/AlloVince/eva-engine/tree/master/vendor/Eva/View" class="js-slide-to" data-branch="master" data-direction="back" itemscope="url"><span itemprop="title">View</span></a></span><span class="separator"> / </span><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="https://github.com/AlloVince/eva-engine/tree/master/vendor/Eva/View/Helper" class="js-slide-to" data-branch="master" data-direction="back" itemscope="url"><span itemprop="title">Helper</span></a></span><span class="separator"> / </span><strong class="final-path">Action.php</strong> <span class="js-zeroclipboard zeroclipboard-button" data-clipboard-text="vendor/Eva/View/Helper/Action.php" data-copied-hint="copied!" title="copy to clipboard"><span class="mini-icon mini-icon-clipboard"></span></span>
        </div>

      <a href="https://github.com/AlloVince/eva-engine/find/master" class="js-slide-to" data-hotkey="t" style="display:none">Show File Finder</a>


        
  <div class="commit file-history-tease">
    <img class="main-avatar" src="Action.php_files/8789e0874bada3a391d8def40c34b92f.png" height="24" width="24">
    <span class="author"><a href="https://github.com/AlloVince" rel="author">AlloVince</a></span>
    <time class="js-relative-date" datetime="2012-10-06T22:16:48-07:00" title="2012-10-06 22:16:48">6 months ago</time>
    <div class="commit-title">
        <a href="https://github.com/AlloVince/eva-engine/commit/0ea7e445aa29bda2c097607d7e97b0244bb3e885" class="message">remove api from helper</a>
    </div>

    <div class="participation">
      <p class="quickstat"><a href="#blob_contributors_box" rel="facebox"><strong>1</strong> contributor</a></p>
      
    </div>
    <div id="blob_contributors_box" style="display:none">
      <h2>Users on GitHub who have contributed to this file</h2>
      <ul class="facebox-user-list">
        <li>
          <img src="Action.php_files/8789e0874bada3a391d8def40c34b92f.png" height="24" width="24">
          <a href="https://github.com/AlloVince">AlloVince</a>
        </li>
      </ul>
    </div>
  </div>


    </div><!-- ./.frame-meta -->

    <div style="min-height: 678px;" class="frames">
      <div class="frame" data-permalink-url="/AlloVince/eva-engine/blob/167fb0929dab8b9e20dee1ef168ae2b21ac9ec53/vendor/Eva/View/Helper/Action.php" data-title="eva-engine/vendor/Eva/View/Helper/Action.php at master · AlloVince/eva-engine · GitHub" data-type="blob">

        <div id="files" class="bubble">
          <div class="file">
            <div class="meta">
              <div class="info">
                <span class="icon"><b class="mini-icon mini-icon-text-file"></b></span>
                <span class="mode" title="File Mode">file</span>
                  <span>70 lines (58 sloc)</span>
                <span>1.778 kb</span>
              </div>
              <div class="actions">
                <div class="button-group">
                      <a original-title="You must be signed in and on a branch to make or propose changes" class="minibutton js-entice entice" href="#" data-entice="You must be signed in and on a branch to make or propose changes">Edit</a>
                  <a href="https://github.com/AlloVince/eva-engine/raw/master/vendor/Eva/View/Helper/Action.php" class="button minibutton " id="raw-url">Raw</a>
                    <a href="https://github.com/AlloVince/eva-engine/blame/master/vendor/Eva/View/Helper/Action.php" class="button minibutton ">Blame</a>
                  <a href="https://github.com/AlloVince/eva-engine/commits/master/vendor/Eva/View/Helper/Action.php" class="button minibutton " rel="nofollow">History</a>
                </div><!-- /.button-group -->
              </div><!-- /.actions -->

            </div>
                <div class="blob-wrapper data type-php js-blob-data">
      <table class="file-code file-diff">
        <tbody><tr class="file-code-line">
          <td class="blob-line-nums">
            <span id="L1" rel="#L1">1</span>
<span id="L2" rel="#L2">2</span>
<span id="L3" rel="#L3">3</span>
<span id="L4" rel="#L4">4</span>
<span id="L5" rel="#L5">5</span>
<span id="L6" rel="#L6">6</span>
<span id="L7" rel="#L7">7</span>
<span id="L8" rel="#L8">8</span>
<span id="L9" rel="#L9">9</span>
<span id="L10" rel="#L10">10</span>
<span id="L11" rel="#L11">11</span>
<span id="L12" rel="#L12">12</span>
<span id="L13" rel="#L13">13</span>
<span id="L14" rel="#L14">14</span>
<span id="L15" rel="#L15">15</span>
<span id="L16" rel="#L16">16</span>
<span id="L17" rel="#L17">17</span>
<span id="L18" rel="#L18">18</span>
<span id="L19" rel="#L19">19</span>
<span id="L20" rel="#L20">20</span>
<span id="L21" rel="#L21">21</span>
<span id="L22" rel="#L22">22</span>
<span id="L23" rel="#L23">23</span>
<span id="L24" rel="#L24">24</span>
<span id="L25" rel="#L25">25</span>
<span id="L26" rel="#L26">26</span>
<span id="L27" rel="#L27">27</span>
<span id="L28" rel="#L28">28</span>
<span id="L29" rel="#L29">29</span>
<span id="L30" rel="#L30">30</span>
<span id="L31" rel="#L31">31</span>
<span id="L32" rel="#L32">32</span>
<span id="L33" rel="#L33">33</span>
<span id="L34" rel="#L34">34</span>
<span id="L35" rel="#L35">35</span>
<span id="L36" rel="#L36">36</span>
<span id="L37" rel="#L37">37</span>
<span id="L38" rel="#L38">38</span>
<span id="L39" rel="#L39">39</span>
<span id="L40" rel="#L40">40</span>
<span id="L41" rel="#L41">41</span>
<span id="L42" rel="#L42">42</span>
<span id="L43" rel="#L43">43</span>
<span id="L44" rel="#L44">44</span>
<span id="L45" rel="#L45">45</span>
<span id="L46" rel="#L46">46</span>
<span id="L47" rel="#L47">47</span>
<span id="L48" rel="#L48">48</span>
<span id="L49" rel="#L49">49</span>
<span id="L50" rel="#L50">50</span>
<span id="L51" rel="#L51">51</span>
<span id="L52" rel="#L52">52</span>
<span id="L53" rel="#L53">53</span>
<span id="L54" rel="#L54">54</span>
<span id="L55" rel="#L55">55</span>
<span id="L56" rel="#L56">56</span>
<span id="L57" rel="#L57">57</span>
<span id="L58" rel="#L58">58</span>
<span id="L59" rel="#L59">59</span>
<span id="L60" rel="#L60">60</span>
<span id="L61" rel="#L61">61</span>
<span id="L62" rel="#L62">62</span>
<span id="L63" rel="#L63">63</span>
<span id="L64" rel="#L64">64</span>
<span id="L65" rel="#L65">65</span>
<span id="L66" rel="#L66">66</span>
<span id="L67" rel="#L67">67</span>
<span id="L68" rel="#L68">68</span>
<span id="L69" rel="#L69">69</span>

          </td>
          <td class="blob-line-code">
                  <div class="highlight"><pre><div class="line" id="LC1"><span class="o">&lt;?</span><span class="nx">php</span></div><div class="line" id="LC2"><span class="sd">/**</span></div><div class="line" id="LC3"><span class="sd"> * EvaEngine</span></div><div class="line" id="LC4"><span class="sd"> *</span></div><div class="line" id="LC5"><span class="sd"> * @link      https://github.com/AlloVince/eva-engine</span></div><div class="line" id="LC6"><span class="sd"> * @copyright Copyright (c) 2012 AlloVince (http://avnpc.com/)</span></div><div class="line" id="LC7"><span class="sd"> * @license   http://framework.zend.com/license/new-bsd New BSD License</span></div><div class="line" id="LC8"><span class="sd"> * @package   Eva_Api.php</span></div><div class="line" id="LC9"><span class="sd"> * @author    AlloVince</span></div><div class="line" id="LC10"><span class="sd"> */</span></div><div class="line" id="LC11"><br></div><div class="line" id="LC12"><span class="k">namespace</span> <span class="nx">Eva\View\Helper</span><span class="p">;</span></div><div class="line" id="LC13"><br></div><div class="line" id="LC14"><span class="k">use</span> <span class="nx">Zend\View\Helper\AbstractHelper</span><span class="p">,</span></div><div class="line" id="LC15">&nbsp;&nbsp;&nbsp;&nbsp;<span class="nx">Zend\ServiceManager\ServiceLocatorAwareInterface</span><span class="p">,</span></div><div class="line" id="LC16">&nbsp;&nbsp;&nbsp;&nbsp;<span class="nx">Zend\ServiceManager\ServiceLocatorInterface</span><span class="p">,</span></div><div class="line" id="LC17">&nbsp;&nbsp;&nbsp;&nbsp;<span class="nx">Zend\View\Exception</span><span class="p">;</span></div><div class="line" id="LC18"><br></div><div class="line" id="LC19"><span class="sd">/**</span></div><div class="line" id="LC20"><span class="sd"> * Call a Controller action</span></div><div class="line" id="LC21"><span class="sd"> * </span></div><div class="line" id="LC22"><span class="sd"> * @category   Eva</span></div><div class="line" id="LC23"><span class="sd"> * @package    Eva_View</span></div><div class="line" id="LC24"><span class="sd"> * @subpackage Helper</span></div><div class="line" id="LC25"><span class="sd"> * @copyright  Copyright (c) 2012 AlloVince (http://avnpc.com/)</span></div><div class="line" id="LC26"><span class="sd"> * @license    http://framework.zend.com/license/new-bsd     New BSD License</span></div><div class="line" id="LC27"><span class="sd"> */</span></div><div class="line" id="LC28"><span class="k">class</span> <span class="nc">Action</span> <span class="k">extends</span> <span class="nx">\Zend\View\Helper\AbstractHelper</span> <span class="k">implements</span> <span class="nx">ServiceLocatorAwareInterface</span></div><div class="line" id="LC29"><span class="p">{</span></div><div class="line" id="LC30"><br></div><div class="line" id="LC31"><br></div><div class="line" id="LC32">&nbsp;&nbsp;&nbsp;&nbsp;<span class="sd">/**</span></div><div class="line" id="LC33"><span class="sd">    * @var ServiceLocatorInterface</span></div><div class="line" id="LC34"><span class="sd">    */</span></div><div class="line" id="LC35">&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">protected</span> <span class="nv">$serviceLocator</span><span class="p">;</span></div><div class="line" id="LC36"><br></div><div class="line" id="LC37">&nbsp;&nbsp;&nbsp;&nbsp;<span class="sd">/**</span></div><div class="line" id="LC38"><span class="sd">    * Set the service locator.</span></div><div class="line" id="LC39"><span class="sd">    *</span></div><div class="line" id="LC40"><span class="sd">    * @param ServiceLocatorInterface $serviceLocator</span></div><div class="line" id="LC41"><span class="sd">    * @return AbstractHelper</span></div><div class="line" id="LC42"><span class="sd">    */</span></div><div class="line" id="LC43">&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">public</span> <span class="k">function</span> <span class="nf">setServiceLocator</span><span class="p">(</span><span class="nx">ServiceLocatorInterface</span> <span class="nv">$serviceLocator</span><span class="p">)</span></div><div class="line" id="LC44">&nbsp;&nbsp;&nbsp;&nbsp;<span class="p">{</span></div><div class="line" id="LC45">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="nv">$this</span><span class="o">-&gt;</span><span class="na">serviceLocator</span> <span class="o">=</span> <span class="nv">$serviceLocator</span><span class="p">;</span></div><div class="line" id="LC46">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">return</span> <span class="nv">$this</span><span class="p">;</span></div><div class="line" id="LC47">&nbsp;&nbsp;&nbsp;&nbsp;<span class="p">}</span></div><div class="line" id="LC48"><br></div><div class="line" id="LC49">&nbsp;&nbsp;&nbsp;&nbsp;<span class="sd">/**</span></div><div class="line" id="LC50"><span class="sd">     * Get the service locator.</span></div><div class="line" id="LC51"><span class="sd">     *</span></div><div class="line" id="LC52"><span class="sd">     * @return \Zend\ServiceManager\ServiceLocatorInterface</span></div><div class="line" id="LC53"><span class="sd">     */</span></div><div class="line" id="LC54">&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">public</span> <span class="k">function</span> <span class="nf">getServiceLocator</span><span class="p">()</span></div><div class="line" id="LC55">&nbsp;&nbsp;&nbsp;&nbsp;<span class="p">{</span></div><div class="line" id="LC56">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">return</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">serviceLocator</span><span class="p">;</span></div><div class="line" id="LC57">&nbsp;&nbsp;&nbsp;&nbsp;<span class="p">}</span></div><div class="line" id="LC58"><br></div><div class="line" id="LC59"><br></div><div class="line" id="LC60">&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">public</span> <span class="k">function</span> <span class="nf">__invoke</span><span class="p">(</span><span class="nv">$controllerName</span><span class="p">,</span> <span class="nv">$actionName</span><span class="p">,</span> <span class="nv">$params</span> <span class="o">=</span> <span class="k">array</span><span class="p">())</span></div><div class="line" id="LC61">&nbsp;&nbsp;&nbsp;&nbsp;<span class="p">{</span></div><div class="line" id="LC62">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="nv">$controllerLoader</span> <span class="o">=</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">serviceLocator</span><span class="o">-&gt;</span><span class="na">getServiceLocator</span><span class="p">()</span><span class="o">-&gt;</span><span class="na">get</span><span class="p">(</span><span class="s1">'ControllerLoader'</span><span class="p">);</span></div><div class="line" id="LC63">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="nv">$controllerLoader</span><span class="o">-&gt;</span><span class="na">setInvokableClass</span><span class="p">(</span><span class="nv">$controllerName</span><span class="p">,</span> <span class="nv">$controllerName</span><span class="p">);</span></div><div class="line" id="LC64">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="nv">$controller</span> <span class="o">=</span> <span class="nv">$controllerLoader</span><span class="o">-&gt;</span><span class="na">get</span><span class="p">(</span><span class="nv">$controllerName</span><span class="p">);</span></div><div class="line" id="LC65">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">return</span> <span class="nv">$controller</span><span class="o">-&gt;</span><span class="nv">$actionName</span><span class="p">(</span><span class="nv">$params</span><span class="p">);</span></div><div class="line" id="LC66">&nbsp;&nbsp;&nbsp;&nbsp;<span class="p">}</span></div><div class="line" id="LC67"><br></div><div class="line" id="LC68"><br></div><div class="line" id="LC69"><span class="p">}</span></div></pre></div>
          </td>
        </tr>
      </tbody></table>
  </div>

          </div>
        </div>

        <a href="#jump-to-line" rel="facebox" data-hotkey="l" class="js-jump-to-line" style="display:none">Jump to Line</a>
        <div id="jump-to-line" style="display:none">
          <h2>Jump to Line</h2>
          <form accept-charset="UTF-8" class="js-jump-to-line-form">
            <input class="textfield js-jump-to-line-field" type="text">
            <div class="full-button">
              <button type="submit" class="button">Go</button>
            </div>
          </form>
        </div>

      </div>
    </div>
</div>

<div id="js-frame-loading-template" class="frame frame-loading large-loading-area" style="display:none;">
  <img class="js-frame-loading-spinner" src="Action.php_files/octocat-spinner-128.gif" height="64" width="64">
</div>


        </div>
      </div>
      <div class="context-overlay"></div>
    </div>

      <div id="footer-push"></div><!-- hack for sticky footer -->
    </div><!-- end of wrapper - hack for sticky footer -->

      <!-- footer -->
      <div id="footer">
  <div class="container clearfix">

      <dl class="footer_nav">
        <dt>GitHub</dt>
        <dd><a href="https://github.com/about">About us</a></dd>
        <dd><a href="https://github.com/blog">Blog</a></dd>
        <dd><a href="https://github.com/contact">Contact &amp; support</a></dd>
        <dd><a href="http://enterprise.github.com/">GitHub Enterprise</a></dd>
        <dd><a href="http://status.github.com/">Site status</a></dd>
      </dl>

      <dl class="footer_nav">
        <dt>Applications</dt>
        <dd><a href="http://mac.github.com/">GitHub for Mac</a></dd>
        <dd><a href="http://windows.github.com/">GitHub for Windows</a></dd>
        <dd><a href="http://eclipse.github.com/">GitHub for Eclipse</a></dd>
        <dd><a href="http://mobile.github.com/">GitHub mobile apps</a></dd>
      </dl>

      <dl class="footer_nav">
        <dt>Services</dt>
        <dd><a href="http://get.gaug.es/">Gauges: Web analytics</a></dd>
        <dd><a href="http://speakerdeck.com/">Speaker Deck: Presentations</a></dd>
        <dd><a href="https://gist.github.com/">Gist: Code snippets</a></dd>
        <dd><a href="http://jobs.github.com/">Job board</a></dd>
      </dl>

      <dl class="footer_nav">
        <dt>Documentation</dt>
        <dd><a href="http://help.github.com/">GitHub Help</a></dd>
        <dd><a href="http://developer.github.com/">Developer API</a></dd>
        <dd><a href="http://github.github.com/github-flavored-markdown/">GitHub Flavored Markdown</a></dd>
        <dd><a href="http://pages.github.com/">GitHub Pages</a></dd>
      </dl>

      <dl class="footer_nav">
        <dt>More</dt>
        <dd><a href="http://training.github.com/">Training</a></dd>
        <dd><a href="https://github.com/edu">Students &amp; teachers</a></dd>
        <dd><a href="http://shop.github.com/">The Shop</a></dd>
        <dd><a href="https://github.com/plans">Plans &amp; pricing</a></dd>
        <dd><a href="http://octodex.github.com/">The Octodex</a></dd>
      </dl>

      <hr class="footer-divider">


    <p class="right">© 2013 <span title="0.04395s from fe17.rs.github.com">GitHub</span>, Inc. All rights reserved.</p>
    <a class="left" href="https://github.com/">
      <span class="mega-icon mega-icon-invertocat"></span>
    </a>
    <ul id="legal">
        <li><a href="https://github.com/site/terms">Terms of Service</a></li>
        <li><a href="https://github.com/site/privacy">Privacy</a></li>
        <li><a href="https://github.com/security">Security</a></li>
    </ul>

  </div><!-- /.container -->

</div><!-- /.#footer -->


    <div class="fullscreen-overlay js-fullscreen-overlay" id="fullscreen_overlay">
  <div class="fullscreen-container js-fullscreen-container">
    <div class="textarea-wrap">
      <textarea name="fullscreen-contents" id="fullscreen-contents" class="js-fullscreen-contents" placeholder="" data-suggester="fullscreen_suggester"></textarea>
          <div class="suggester-container">
              <div class="suggester fullscreen-suggester js-navigation-container" id="fullscreen_suggester" data-url="/AlloVince/eva-engine/suggestions/commit">
              </div>
          </div>
    </div>
  </div>
  <div class="fullscreen-sidebar">
    <a original-title="Exit Zen Mode" href="#" class="exit-fullscreen js-exit-fullscreen tooltipped leftwards">
      <span class="mega-icon mega-icon-normalscreen"></span>
    </a>
    <a original-title="Switch themes" href="#" class="theme-switcher js-theme-switcher tooltipped leftwards">
      <span class="mini-icon mini-icon-brightness"></span>
    </a>
  </div>
</div>



    <div id="ajax-error-message" class="flash flash-error">
      <span class="mini-icon mini-icon-exclamation"></span>
      Something went wrong with that request. Please try again.
      <a href="#" class="mini-icon mini-icon-remove-close ajax-error-dismiss"></a>
    </div>

    
    
    <span id="server_response_time" data-time="0.04441" data-host="fe17"></span>
    
  


<div original-title="" style="position: absolute; left: -9999px; top: -9999px; width: 15px; height: 15px; z-index: 9999;" data-clipboard-ready="true" class="global-zeroclipboard-container" id="global-zeroclipboard-html-bridge">      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="global-zeroclipboard-flash-bridge" height="100%" width="100%">         <param name="movie" value="https://a248.e.akamai.net/assets.github.com/flash/ZeroClipboard.swf?nocache=1366125700952">         <param name="allowScriptAccess" value="always">         <param name="scale" value="exactfit">         <param name="loop" value="false">         <param name="menu" value="false">         <param name="quality" value="best">         <param name="bgcolor" value="#ffffff">         <param name="wmode" value="transparent">         <param name="flashvars" value="trustedDomain=github.com">         <embed src="Action.php_files/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" name="global-zeroclipboard-flash-bridge" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="trustedDomain=github.com" scale="exactfit" height="100%" width="100%">                </object></div>    <div id="facebox" style="display:none;">       <div class="popup">         <div class="content">         </div>         <a href="#" class="close"><span class="mini-icon mini-icon-remove-close"></span></a>       </div>     </div></body></html>